package com.zm.openapi.enums;

public enum CommonEnum {

    INVALID_IDENTIFY("OPEN_000001", "身份校验失败"),
    ERROR_APPID_NULL("OPEN_000002", "appid不能为空"),
    ERROR_APPID_NO_SECRET("OPEN_000003", "未获取到对应的密钥信息"),
    ERROR_UNAUTHED_API_PATH("OPEN_000004", "未开放的接口地址"),
    ERROR_UNSUPPORTED_REQUEST_CONTENT_TYPE("OPEN_000005", "contentType仅支持 application/json "),
    ERROR_REQUEST_PARAMETER_NULL("OPEN_000006", "未获取到请求参数"),
    ERROR_REQUEST_VALIDATE("OPEN_000007", "验签失败"),
    ERROR_REQUEST_FREQUENCY("OPEN_000008", "请求过于频繁"),
    ERROR_REQUEST_NONE_CONTENT_TYPE("OPEN_000009", "请求头缺失 contentType "),
    ;

    /**
     * 代码
     */
    private final String code;

    /**
     * 描述
     */
    private final String msg;

    CommonEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
